import network from '../network/index'


export default ({
    state: {
      special:[],
    //   bargain:[]
    },
    mutations: {
        specialList(state,items){
            state.special = items
        },
    },
    actions: {
        specialList(context,){
            console.log(1231232222222)
            network.getSpecial().then((res)=>{
                context.commit('specialList',res.data.data)
            }).catch((error)=>{
                console.log(error)
            })
        },

    },
    modules: {

    }
})
  